package com.shigu.phoneCode.enums;

public enum PhoneCodeType {
    REGISTER(1,"注册验证码"),
    PASSWORD(2,"修改登录密码"),
    PAYPASSOWRD(3,"修改支付密码");

    public static PhoneCodeType selByValue(int value){
        for(PhoneCodeType pt: PhoneCodeType.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }


    PhoneCodeType(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    }
